<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>

</head>
<body>
  <div id="app">
    {{ message }}
    <button v-on:click="reverseMessage">Reverse Message</button>
    56464564

    <div v-for="(data) of datas">
      {{data}}
    </div>

  </div>
  <script src="https://unpkg.com/vue@2.1.8/dist/vue.min.js"></script>
  <script type="text/javascript">
    new Vue({
      el: '#app',
      data: {
        message:"abcdef     g",
        datas:{
          1:1,
          2:2,
          3:3
        }
      },
      methods:{
        reverseMessage:function(){
          this.message=this.message.split("").reverse().join("");
        }
      }
    });
  </script>
</body>
</html>
